/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VenOrdenarMiniBus.java
 *
 * Created on May 18, 2010, 2:08:32 PM
 */

package View;

/**
 *
 * @author Scott
 */
public class VenOrdenarMiniBus extends javax.swing.JFrame {

    /** Creates new form VenOrdenarMiniBus */
    public VenOrdenarMiniBus() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new View.panelDefondo("fondo.jpg");
        jP_Superior = new View.panelDefondo("fondo3.png");
        jButton_Aceptar = new javax.swing.JButton();
        jButton_Cancelar = new javax.swing.JButton();
        jComboBox_NumeroPersonas = new javax.swing.JComboBox();
        jL_TIpoRuta1 = new javax.swing.JLabel();
        jComboB_TIpoRuta = new javax.swing.JComboBox();
        jL_DatosServicio = new javax.swing.JLabel();
        jL_Ruta2 = new javax.swing.JLabel();
        jL_Paradas = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jL_Paradas1 = new javax.swing.JLabel();
        jB_Cancelar1 = new javax.swing.JButton();
        jB_Atras2 = new javax.swing.JButton();

        setTitle("Servicio de Minibus");

        jPanel2.setBackground(new java.awt.Color(204, 204, 204));

        jP_Superior.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_SuperiorLayout = new javax.swing.GroupLayout(jP_Superior);
        jP_Superior.setLayout(jP_SuperiorLayout);
        jP_SuperiorLayout.setHorizontalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 429, Short.MAX_VALUE)
        );
        jP_SuperiorLayout.setVerticalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 104, Short.MAX_VALUE)
        );

        jButton_Aceptar.setText("Aceptar");

        jButton_Cancelar.setText("Cancelar");

        jComboBox_NumeroPersonas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40" }));

        jL_TIpoRuta1.setFont(new java.awt.Font("Vani", 1, 12));
        jL_TIpoRuta1.setForeground(new java.awt.Color(255, 255, 255));
        jL_TIpoRuta1.setText("Nacional o Regional");

        jComboB_TIpoRuta.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nacional", "Regional" }));
        jComboB_TIpoRuta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboB_TIpoRutaActionPerformed(evt);
            }
        });

        jL_DatosServicio.setFont(new java.awt.Font("Vani", 1, 12));
        jL_DatosServicio.setForeground(new java.awt.Color(255, 255, 255));
        jL_DatosServicio.setText("Datos Servicio");

        jL_Ruta2.setFont(new java.awt.Font("Vani", 1, 12));
        jL_Ruta2.setForeground(new java.awt.Color(255, 255, 255));
        jL_Ruta2.setText("Ruta:");

        jL_Paradas.setFont(new java.awt.Font("Vani", 1, 12));
        jL_Paradas.setForeground(new java.awt.Color(255, 255, 255));
        jL_Paradas.setText("Numero Pasajeros");

        jButton1.setText("Agregar Parada");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jL_Paradas1.setFont(new java.awt.Font("Vani", 1, 12));
        jL_Paradas1.setForeground(new java.awt.Color(255, 255, 255));
        jL_Paradas1.setText("Paradas:");

        jB_Cancelar1.setText("Factura");
        jB_Cancelar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_Cancelar1ActionPerformed(evt);
            }
        });

        jB_Atras2.setText("Atras");
        jB_Atras2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_Atras2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jL_DatosServicio, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jL_Paradas1, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jL_Ruta2)
                                .addGap(12, 12, 12)
                                .addComponent(jL_TIpoRuta1))
                            .addComponent(jL_Paradas))
                        .addGap(10, 10, 10)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jComboBox_NumeroPersonas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboB_TIpoRuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(184, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(280, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton_Aceptar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_Cancelar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jB_Cancelar1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jB_Atras2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(321, 321, 321))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jP_Superior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jP_Superior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jL_DatosServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jL_Ruta2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jL_TIpoRuta1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboB_TIpoRuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(2, 2, 2)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addComponent(jL_Paradas, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(jL_Paradas1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jComboBox_NumeroPersonas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(5, 5, 5)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton_Aceptar)
                    .addComponent(jButton_Cancelar)
                    .addComponent(jB_Cancelar1)
                    .addComponent(jB_Atras2))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-445)/2, (screenSize.height-346)/2, 445, 346);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        VenAgregarParada venagregarparada = new VenAgregarParada();
        venagregarparada.setVisible(true);
}//GEN-LAST:event_jButton1ActionPerformed

    private void jB_Cancelar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_Cancelar1ActionPerformed
        VenMuesFactura venfactura = new VenMuesFactura();
        venfactura.setVisible(true);
}//GEN-LAST:event_jB_Cancelar1ActionPerformed

    private void jComboB_TIpoRutaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboB_TIpoRutaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboB_TIpoRutaActionPerformed

    private void jB_Atras2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_Atras2ActionPerformed
      this.dispose();
    }//GEN-LAST:event_jB_Atras2ActionPerformed

    /**
    * @param args the command line arguments
    */
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB_Atras2;
    private javax.swing.JButton jB_Cancelar1;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton_Aceptar;
    private javax.swing.JButton jButton_Cancelar;
    private javax.swing.JComboBox jComboB_TIpoRuta;
    private javax.swing.JComboBox jComboBox_NumeroPersonas;
    private javax.swing.JLabel jL_DatosServicio;
    private javax.swing.JLabel jL_Paradas;
    private javax.swing.JLabel jL_Paradas1;
    private javax.swing.JLabel jL_Ruta2;
    private javax.swing.JLabel jL_TIpoRuta1;
    private javax.swing.JPanel jP_Superior;
    private javax.swing.JPanel jPanel2;
    // End of variables declaration//GEN-END:variables

}
